package com.example.resume_management_system.common;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
@Component
public class strEdit {
    public String strEdit(String str){
        String[] s=str.split("/");
        String s2="hdfs://";
        if(s.length<=3){
            return str;
        }
        for(int i=2;i<s.length-1;i++){
            s2=s2+s[i]+"/";
        }
        return s2;
    }
}
